/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Controller;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 *
 * @author Andre
 */
public class ValidaData {
    SimpleDateFormat in= new SimpleDateFormat("yyyy-MM-dd");
    SimpleDateFormat out = new SimpleDateFormat("dd/MM/yyyy");

    public String validaDataRelatorio (String data){
           String aux = data.toString();
           String [] array = data.split("/");
           if (array[2].equals("0000")){
                array[2]="0001";
           }
           aux = array[0]+"/"+array[1]+"/"+array[2];
           return aux;
    }


}
